const test_DeclarationVariable_1 = () => {

    const code = ` var a = 99
    `
    // const tokenList = new TokenList(code)

    const tokenList = [
        {tokenValue: "var", tokenType: TokenType.keyword},
        {tokenValue: "a", tokenType: TokenType.variable},
        {tokenValue: '=', tokenType: TokenType.assign},
        {tokenValue: 99, tokenType: TokenType.number},
        {tokenValue: ";", tokenType: TokenType.semicolon},
    ]
    const result = parser(tokenList, 0)

    const expect =  {
        type: AstType.DeclarationVariable,
        kind: 'var',
        variable: 'a',
        value: {
            type: TokenType.number,
            value: 99,
        }
    }
    ensure(equals(result, expect), '### test_DeclarationVariable_1')
}

